﻿using FluentValidation;

namespace IdentityServer.Infrastructure.Validators
{
    public record LoginByPhoneAndPwdRequest(string PhoneNumber, string Password)
    {
    }
    public class LoginByPhoneAndPwdRequestValidator : AbstractValidator<LoginByPhoneAndPwdRequest>
    {
        public LoginByPhoneAndPwdRequestValidator()
        {
            RuleFor(x => x.PhoneNumber).NotEmpty().NotNull();
            RuleFor(x => x.Password).NotEmpty().NotNull();
        }
    }
}
